﻿
using EntitiesAndMappings.Entities;
using FluentNHibernate.Mapping;

namespace EntitiesAndMappings.Maps
{
    public class AlmacenMap : ClassMap<Almacen>
    {
        public AlmacenMap()
        {
            Id(x => x.Id);
            Map(x => x.Codigo).Length(2).Unique().Not.Nullable();
            Map(x => x.Nombre).Length(100).Not.Nullable();
            Map(x => x.Direccion).Length(100).Not.Nullable();
            Map(x => x.Estado).Length(1).Not.Nullable();
        }
    }
}
